<?php

/*
+---------------------------------------------------------------------+
| iThinkphp     | [ WE CAN DO IT JUST THINK ]                         |
+---------------------------------------------------------------------+
| Official site | http://www.ithinkphp.org/                           |
+---------------------------------------------------------------------+
| Author        | hello wf585858@yeah.net                             |
+---------------------------------------------------------------------+
| Repository    | https://gitee.com/wf5858585858/iThinkphp            |
+---------------------------------------------------------------------+
| Licensed      | http://www.apache.org/licenses/LICENSE-2.0 )        |
+---------------------------------------------------------------------+
*/



	namespace auth\permission;

	use auth\BaseRule;

	class Rule extends BaseRule
	{

		/**
		 *    验证是否访问的地址有没有权限
		 *
		 * @param $currentAction
		 * @param $menuMap
		 *
		 * @return bool
		 */
		public static function authPrivilege($currentAction , $menuMap)
		{
			return in_array($currentAction , $menuMap);
		}

	}